﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using shop.entity;
using shop.service;

namespace shop
{
    public partial class index: System.Web.UI.Page
    {
        //珠宝商品集合
        protected List<Goods> jewelryGoodsList;

        //家具商品集合
        protected List<Goods> furnitureGoodsList;

        //热门礼物集合
        protected List<Goods> giftGoodsList;
        //家具商品集合
        protected List<Goods> homeDecoGoodsList;

        //艺术商品集合
        protected List<Goods> artGoodsList;


        //轮播图集合
        protected List<Goods> carouselGoodsList;
        private GoodsService goodsService = new GoodsService();
        protected void Page_Load(object sender, EventArgs e)
        {
            //ListGoods();
            jewelryGoodsList = goodsService.GetGoodsByCategoryId(1,4);
            furnitureGoodsList = goodsService.GetGoodsByCategoryId(3, 4);
            homeDecoGoodsList = goodsService.GetGoodsByCategoryId(4, 4);
            artGoodsList = goodsService.GetGoodsByCategoryId(5, 4);
            giftGoodsList = goodsService.GetGoodsByCategoryId(2, 4);

            carouselGoodsList = goodsService.GetCarousels();
        }
    }
}